<?php
class prettify{

    public function footer(){
        $host = S();
        echo<<<EOT

<!-- prettify plugin begin -->
<link rel="stylesheet" href="{$host}/system/plugin/prettify/prettify.css" type="text/css" />
<script type="text/javascript" src="{$host}/system/plugin/prettify/prettify.js"></script>
<script type="text/javascript">
$(function(){ $('pre').addClass('linenums');prettyPrint(); });
</script>
<!-- prettify plugin end -->

EOT;

    }

    public function version() {
        return array(
            'version' => '1.0',
            'pid' => 'prettify',
            'description' => 'google-code-prettify 代码高亮显示插件',
            'home' => 'http://blog.com',
            'author' => '幽灵传说',
            'status' => 1
        );
    }
}